
# !!!!!!!!!!
# there are some inconsistencies in wx: the base,net and xml depends on core (?)
# this prevents running without GUI (!)

AM_CPPFLAGS = -DwxUSE_GUI=0 -I$(top_srcdir)/include `wx-config --cxxflags base,net,xml`
#AM_CPPFLAGS = -I$(top_srcdir)/include $(WX_CXXFLAGS_ONLY)

libexec_PROGRAMS = cone votable
noinst_LIBRARIES = libvotable.a

cone_SOURCES = cone.cpp 
# wrong, but working way:
#cone_LDFLAGS = @LIBGCC@ @LIBSTDCPP@ $(WX_LIBS) -L. 
# right, but not working way:
cone_LDFLAGS = `wx-config --libs base,net,xml` -L. @LIBGCC@ @LIBSTDCPP@
#-lvotable -lcfitsio -lm
cone_LDADD   = -lvotable -lcfitsio -lm

votable_SOURCES = votab.cpp 
#votable_LDFLAGS = `wx-config --libs base,net,xml`
#votable_LDFLAGS = @LIBGCC@ @LIBSTDCPP@ $(WX_LIBS) -L.
votable_LDFLAGS = `wx-config --libs base,net,xml` -L. @LIBGCC@ @LIBSTDCPP@
#-lvotable -lcfitsio -lm
votable_LDADD = -lvotable -lcfitsio -lm

libvotable_a_SOURCES = votable.cpp
